package com.krisyu.MementoPattern.template;

/**
 * @DATE 2022/1/8
 * @Author KrisYu
 * @Description 备忘录角色： 用于保存欲保存的状态。
 */
public class Memento {
    // 备份的状态
    private String state = "";


    public Memento(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
